<?php
/**
 * Created by PhpStorm.
 * User: AivyYuan
 * Date: 2016/7/14
 * Time: 17:45
 */
namespace app\models;

use Yii;
use yii\db\ActiveRecord;

class RegisterForm extends ActiveRecord{
    public $password_repeat;
    public static function tableName(){
        return "user";
    }
    public function rules()
    {
        return [
            [['username','password','email'],'required'],
            [['username','email'],'unique'],
            ['password','compare'],
            ['email','email']
        ];
    }

}
